<div class="top">
	<div class="left">
		<a href="m.admin-login.html"><i class="icon-tag"></i></a>
		<a href="m.main.html">首页</a>
	</div>
	<div class="right">
<!-- 		<a class="icon-cart" href="m.cart.html">购物车</a>
		<a id="sign_in_btn" class="icon-user2" href="m.login.html">登陆</a> -->

        <div id="menu" class="menu-button"></div>
<style>.menu-button {
  height: 24px;
  width: 24px;
  cursor: pointer;
}
.menu-button:before {
    content: "";
    position: absolute;
    top: 2px;
    right: 3px;
    border-bottom: 13px double #FFF;
    border-top: 4px solid #FFFFFF;
    width: 24px;
    height: 5px;
}
</style>
	</div>
</div>

<script type="text/vm">
	function (vm) {
        //自动跟谁滚动功能
require(['jQuery'],function(){
    $(function() {
        var top_bar;
        function _scroll_ () {
            if (!top_bar) {
                top_bar = $('#top_bar');
                if (top_bar.length) {
                    _scroll_ = _scroll_2;
                    _scroll_();
                }
            }
        }
        function _scroll_2 () {
            if(pageYOffset<=0){//最好不要盖住重要内容
                top_bar.css({'position':'relative','top':'0'});
            }else{
                top_bar.css({'position':'fixed','top':'0'});
            }
        }
        $(window).scroll(function(){
            _scroll_();
        });
    });
})


    }
</script>